﻿@{
	ViewBag.Title = "Login";
	Layout = "~/Views/Shared/_Base.cshtml";
}
@section TitleContent 
{
Log in
}
@section HeadContent
{
	<script src="@Url.Content("~/Scripts/Shared/openid-jquery.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/Shared/openid-en.js")" type="text/javascript"></script>
	<link href="@Url.Content("~/Content/openid.css")" rel="stylesheet" type="text/css" />
}
<h2>
	Login</h2>
<div style="float: left; width: 100%">
	Do you already have an account on one of these sites? Click the logo to <strong>log
		in</strong> with it here:
</div>
<div style="float: left; width: 100%">
	@using (Html.BeginForm("Authenticate", "User", FormMethod.Get, new { id = "openid_form" }))
 {
	 <input type="hidden" name="action" value="verify" />
	 @Html.Hidden("returnUrl", (string)ViewBag.ReturnUrl)
	
		<fieldset>
			<legend>Sign-in or Create New Account</legend>
			<div id="openid_choice">
				<p>
					Please click your account provider:</p>
				<div id="openid_btns">
				</div>
			</div>
			<div id="openid_input_area">
				<input id="openid_identifier" name="openid_identifier" type="text" value="http://" />
				<input id="openid_submit" type="submit" value="Sign-In" />
			</div>
			<noscript>
				<p>
					OpenID is service that allows you to log-on to many different websites using a single
					indentity. Find out <a href="http://openid.net/what/">more about OpenID</a> and
					<a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
			</noscript>
		</fieldset>
 }
</div>
<div>
	@Html.ValidationSummary()
</div>
<script type="text/javascript">
	$(document).ready(function () {
		openid.init('openid_identifier');
		//openid.setDemoMode(true); 
	});
</script>
